import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  { path: '', pathMatch: 'full', redirectTo: '/welcome' },
  {
    path: 'welcome',
    loadChildren: () => import('./pages/welcome/welcome.module').then((m) => m.WelcomeModule),
  },
  {
    path: 'monitor',
    loadChildren: () => import('./pages/monitor/monitor.module').then((m) => m.MonitorModule),
  },
  {
    path: 'workspace',
    loadChildren: () => import('./pages/workspace/workspace.module').then((m) => m.WorkspaceModule),
  },
  {
    path: 'pagetest',
    loadChildren: () => import('./pages/pagetest/pagetest.module').then((m) => m.PagetestModule),
  },
  {
    path: 'loginselect',
    loadChildren: () =>
      import('./pages/loginselect/loginselect.module').then((m) => m.LoginselectModule),
  },

  {
    path: 'explore',
    loadChildren: () => import('./pages/explore/explore.module').then((m) => m.ExploreModule),
  },
];
@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {}
